<?php

/**
 * noticia actions.
 *
 * @package    musica
 * @subpackage noticia
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class noticiaActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {

  	$c = new Criteria();
    $c->addAscendingOrderByColumn(NoveltyPeer::SLUG);
    $this->novelty = NoveltyPeer::doSelect($c);
  	
  }
  
  public function executeView(sfWebRequest $request)
  {
  	
    $c = new Criteria();
    $c->add(NoveltyPeer::SLUG, $request->getParameter('slug'));
    $this->novelty = NoveltyPeer::doSelectOne($c);

    $this->forward404Unless($this->novelty);
   
  	
  }
  

}
